/**
 * zoneland.net Inc.
 * Copyright (c) 2015 All Rights Reserved.
 */
package net.zoneland.knowledge.enums;

/**
 * 统计列表的类型和显示量配置
 *
 * @version v1.0
 * @ClassName: TotalListEnum
 * @Author: Pbody
 * @Date: 2020/4/27 17:55
 */
public enum TotalListEnum {

    HOT("1",6, "热门问题列表"),
    SEARCH("2",10, "搜索排行列表");

    private final String key;
    //列表需要显示的记录数
    private final Integer limit;
    private final String name;

    TotalListEnum(String key, Integer limit, String name) {
        this.key = key;
        this.limit = limit;
        this.name = name;
    }

    /**
     * Getter method for property <tt>key</tt>.
     * 
     * @return property value of key
     */
    public String getKey() {
        return key;
    }

    /**
     * Getter method for property <tt>name</tt>.
     * 
     * @return property value of name
     */
    public String getName() {
        return name;
    }

    /**
     * Gets the value of value.
     *
     * @return the value of value
     */
    public Integer getLimit() {
        return limit;
    }
}
